Namespace - LJCNetCommon
Parameters
value - The value object.
Returns
The decimal value or zero if the object is null.
Also returns zero if the object is not type "decimal", "long", "int"
or "short".
Syntax
C# |
public static Decimal GetDecimal(Object value)
|
Gets a decimal value from an object. (E)
Example
C# |
using LJCNetCommon;
private static void GetDecimal()
{
decimal setup = 3.14m;
object obj = setup;
decimal value = NetCommon.GetDecimal(obj);
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.